#if !defined(ximera_scripting_lua_script_hpp)
#define ximera_scripting_lua_script_hpp

// -----------------------------------------------------------

#include <ximera/scripting/iscript.hpp>
#include <string>

namespace ximera { namespace scripting { namespace lua
{
    class ScriptingSystem;
    class VirtualMachine;

    class XIMERA_PLUGIN_API Script : public IScript
    {
    public:
        virtual Language language() const;
        
        virtual bool isLoaded() const;
        virtual void data(String const& code);

    private:
        std::string _data;
        bool _isLoaded;

        friend class ScriptingSystem;
        friend class VirtualMachine;
    };
}}}

// -----------------------------------------------------------

#endif